package ar.fiuba.tp7552.buildadmin.model.expensas;

import java.math.BigDecimal;

public class Cuenta {

	private BigDecimal saldoExpensas = BigDecimal.ZERO;
	private BigDecimal saldoIntereses = BigDecimal.ZERO;
	
	public void incrementarSaldo(BigDecimal valor) {
		saldoExpensas = saldoExpensas.add(valor);
	}
	
	public void incrementarIntereses(BigDecimal valor) {
		saldoIntereses = saldoIntereses.add(valor);
	}
	
	public void decrementarSaldo(BigDecimal valor) {
		saldoExpensas = saldoExpensas.subtract(valor);
	}
	
	public void decrementarIntereses(BigDecimal valor) {
		saldoIntereses = saldoIntereses.subtract(valor);
	}
	
	//~~ getters y setters ===========================================================
	
	public BigDecimal getSaldoExpensas() {
		return saldoExpensas;
	}
	public void setSaldoExpensas(BigDecimal saldoExpensas) {
		this.saldoExpensas = saldoExpensas;
	}
	public BigDecimal getSaldoIntereses() {
		return saldoIntereses;
	}
	public void setSaldoIntereses(BigDecimal saldoIntereses) {
		this.saldoIntereses = saldoIntereses;
	}
}
